<div class="row-fluid" style="margin-bottom: 20px;">
    <div class="span12">
        <div class="box">
            <div class="tab-header">
                <i class="icon-file"></i> <?= $result->store ?> </div>

            <div class="padded" id="action_load_mudle">
                <!-- action contant  -->
                <p><?= $result->create_date ?></p>
                <h1><?= $result->store ?> </h1>
                <h3><?= $result->amrica_track ?> </h3> 
                


            </div>
        </div>
    </div>
</div>

<div class="row-fluid"  style="margin-bottom: 20px;">
    <div class="span12">
        <table class="table table-striped table-bordered box">
            <thead>
                <tr>
                    <th colspan="2"><?=lang('label_item_under_box')?><spsn>[<?= count($box) ?>]</spsn></th>
            </tr>
            </thead>
            <tbody>
                <?
                $r = 0;
                if (is_array($box)) {
                    foreach ($box as $val) {
                        $r++;
                        ?>
                        <tr>
                            <td style="width: 20%;"><b># <?= $r ?> </b>  <?=lang('label_title')?></td>
                            <td><strong><a href="<?= $val->link ?>#" target="_blank"><?= $val->title ?></a></strong></td>
                        </tr>
                        <tr>
                            <td><?=lang('label_quantity')?></td>
                            <td><?= $val->quantity ?></td>
                        </tr>
    <? }
} ?>

            </tbody>

        </table>

    </div> </div>

<div class="row-fluid"  style="margin-bottom: 20px;">
    <div class="span12">
        <table class="table table-striped table-bordered box">
                                             <thead>
                                                 <tr>
                                                     <th colspan="4"> <i class="icon-book" style="margin-left: 10px;"></i>   <?=lang('label_bill_history')?></th>
                                                 </tr>
                                             </thead>
                                             <tbody>
                                                 <?
                                                 $r = 0;
                                                 if (is_array($histroy)) {


                                                     foreach ($histroy as $val) {
                                                         $r++;
                                                         ?>
                                                         <tr>
                                                             <td style="width: 20%;"> <?= timespan($val->create_date, time()); ?></td>
                                                             <td><strong><?= $val->title ?></strong>
                                                                 <strong style="display: block;color: green"><?= $val->note ?></strong>
                                                             </td>
                                                             <td><? if (!empty($val->company)) { ?> <a href="<?= get_shiping_company($val->company, 'link') ?>" target="_blank"><?= $val->track ?></a>  <? } ?></td>
                                                             <td><?= $val->username ?></td>
                                                         </tr>

                                                     <?
                                                     }
                                                 }
                                                 ?>

                                             </tbody>

                                         </table>

        </div> </div>